package com.hellomeng.basedata;

public class Arr {
    public static void main(String[] args) {
        int arr1[];
        int[] arr2;
        arr1 = new int[10];
        arr2 = new int[10];
        arr1[0] = 1;
        arr1[1] = 100;
        int[]arr3 = new int[10];
        int[]arr4 = new int[]{1,2,3,4,5};
        int[]arr5 = {1,2,3,4,5,6};
        arr5[1] = 20;
        System.out.println(arr1.length +" "+arr2.length+" "+arr3.length+" "+arr4.length+" "+arr5.length);
        System.out.println(arr1[1]);
        System.out.println(arr5[1]);
    }
}
